package com.chagee.channel.common.constant;

/**
 * 飞书
 *
 * @author: chang.jiawei
 * @date: 2024/01/18
 */
public interface LarkConstant {

    String TENANT_ACCESS_TOKEN_CACHE_KEY = "LARK:TENANT:ACCESS:TOKEN";

    String APP_ID_KEY = "app_id";

    String APP_SECRET_KEY = "app_secret";

    String AUTHORIZATION_HEADER_KEY = "Authorization";

    String AUTHORIZATION_HEADER_VALUE_PREFIX = "Bearer ";

    Integer TENANT_ACCESS_TOKEN_CACHE_EXPIRE_MINUTE = 25;

    String TENANT_ACCESS_TOKEN = "tenant_access_token";

    String TOKEN_EXPIRE = "expire";

    String FILE_PARAM_KEY = "content";

    String FILE_NAME_PARAM_KEY = "name";

    String FILE_TYPE_PARAM_KEY = "type";

    String RESPONSE_DATA = "data";

    String FILE_CODE_KEY = "code";

    String FILE_URL_KEY = "url";

    String INSTANCE_CODE_KEY = "instance_code";

    String EVENT_CHALLENGE_KEY = "challenge";

    String APPROVAL_EVENT_CHANGE_CALLBACK_TYPE = "approval_instance";

    String APPROVAL_TASK_CHANGE_CALLBACK_TYPE = "approval_task";

    String EVENT_KEY = "event";

    String TIMESTAMP_HEADER = "X-Lark-Request-Timestamp";

    String NONCE_HEADER = "X-Lark-Request-Nonce";

    String SIGNATURE_HEADER = "X-Lark-Signature";

    String MESSAGE_DIGEST = "SHA-256";

    String PREVIEW_NODES_KEY = "preview_nodes";

    String USER_ID = "user_id";

    String PAGE_TOKEN = "page_token";

    String PAGE_SIZE = "page_size";

	String COMMENT_TEXT = "text";

	String COMMENT_FILES = "files";

	String COMMENT_TITLE = "title";

	String COMMENT_URL = "url";

	String COMMENT_TYPE = "type";

	String COMMENT_FILESIZE = "fileSize";

}
